using System;
using System.Collections;
using System.Diagnostics;

namespace OR.Reuse.Persistence
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	public class EntityCollectionBase : CollectionBase
	{
		protected EntityBase				mParentEntity;

		public EntityBase ParentEntity
		{
			get
			{
				return ( mParentEntity );
			}
			set
			{
				mParentEntity = value;
			}
		}

		public EntityBase this[ int pIndex ]
		{
			get
			{
				return ( EntityBase )this.List[ pIndex ];
			}
		}
		
      public int IndexOf( object pItem ) 
      {
         Debug.Assert( null != pItem, "The item is invalid." );

         return this.List.IndexOf( pItem );
      }
		
      public EntityCollectionBase()
		{
			//
			// TODO: Add constructor logic here
			//
		}
	}
}
